Post

Replies

Boosts

Views

Activity

Reply to Differentiate between Homescreen click and Lock Screen click
Much later - my use case is around a managing a hotspot connection which I use to to control a device. (using NEHotspotConfigurationManager) When the user launches the app, then I connect to the known hotspot. Obviously that puts up an alert for them to accept. When the app is minimised (user is switching to another app) - then I want to remove the hotspot configuration so that I return the device to the prior state. When the device is simply locked, I don't want to remove the configuration because then I'll have to put up another prompt to reconnect as soon as the user unlocks. any suggestions? illustration: App Launches -> Prompt user to connect to hotspot Device Locks -> Nothing (it will be normal for them to spend an hour or so in this state) Device Unlocks -> Nothing App Minimised -> Remove hotspot config, return device to initial state Currently, I have App Launches -> Prompt user to connect to hotspot Device Locks -> Remove hotspot config, return device to initial state Device Unlocks -> Have to prompt the user again to connect App Minimised -> Remove hotspot config, return device to initial state
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’22